package com.mapforge.gui.tools;

import com.mapforge.selection.DiscontinuousSelectionSet;
import com.mapforge.selection.Selection;

/**
 * The {@link SelectedTiles} clas is a singleton {@link Selection} which
 * represents points selected for cut/copy operations.
 * 
 * @see http://en.wikipedia.org/wiki/Singleton_pattern
 * @author Will Morrison
 * 
 */
public class SelectedTiles extends DiscontinuousSelectionSet {
	private static SelectedTiles selectedTiles;

	private SelectedTiles() {
		super();
	}

	public static final SelectedTiles getHandle() {
		if (SelectedTiles.selectedTiles == null) {
			SelectedTiles.selectedTiles = new SelectedTiles();
		}
		return SelectedTiles.selectedTiles;
	}
	
}
